#!/bin/bash

set -e

cd $(pwd)
GETTEXT_FILES=$(mktemp --tmpdir kylin-verify.lst.XXXXX)
if [ ! -d "po" ]; then
  mkdir po
fi
touch po/kylin-verify.pot

find . -name "*.c" | sort > $GETTEXT_FILES
xgettext --output po/kylin-verify.pot \
	 --files-from $GETTEXT_FILES \
	 --c++ \
	 --add-comments=TRANSLATORS \
	 --keyword=_ \
	 --package-name="kylin-verify"\
